<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>宅急送</title>
    <script src="/resources/js/function/Local.js"></script>
    <link rel="stylesheet" href="/resources/layui/css/layui.css">
    <script type="text/javascript" src="/resources/layui/layui.js"></script>
    <script src="/resources/js/jquery.min.js"></script>
</head>
<body>

<table class="layui-hide" id="test"   lay-filter="test"></table>

<script>
    layui.use('table', function(){
        var table = layui.table;
        table.render({
            elem: '#test'
            ,url:new Local().base_url+'/users/listsg'
            ,id:"test"
            ,page: true
            ,cols: [[
                {field:'hello',type:'checkbox'},
                {field:'id', title: 'ID', sort: true}
                ,{field: 'name', title: '用户名'}
                ,{field:'user',  title: '账号'}
                ,{field:'password',  title: '密码'}
                ,{field:'phone',  title: '手机号'}
                ,{field:'protrait',  title: '头像'}
            ]]
            ,limit:5
        });
    });
</script>

</body>
</html>